package com.common.handler;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * @Description: 系统级默认的登出成功的处理器，如果具体系统业务需要重写，继承该类并重写onLogoutSuccess方法即可
 * @Date: 2025/6/5 17:19
 */
@Component
public class SystemDefaultLogoutSuccessHandler implements LogoutSuccessHandler {



    @Override
    public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {
        // TODO: 2025/6/5 补充返回的json值
    }
}
